BUILD=build
STANDARD=standard
TEST=test
TESTCASES= 0 1 2 3 4 5 6 7 8 9 10
OBJECTS= $(STANDARD)
CFLAGS = -g -Wall -Wno-unused-result -std=c11
CC=cc

$(BUILD): $(OBJECTS)

$(STANDARD): src/standard.c
	$(CC) $(CFLAGS) src/standard.c -o bin/standard

standardall: $(BUILD)
	@for i in $(TESTCASES); do \
		bin/standard < data/data$$i.in > data/data$$i.out;\
		cat data/data$$i.in; \
		cat data/data$$i.out; \
		echo data/data$$i.out [done];\
		echo ------------------------------; \
	done

.PHONY: clean

clean:
	-rm bin/standard
	-rm -rfv bin/standard.dSYM
